BuffEffect31 = BaseBuffEffect:new();
BuffEffect31.__index = BuffEffect31;

function BuffEffect31:new()
    local object = {};
    setmetatable(object, BuffEffect31);
    return object;
end

function BuffEffect31:action(fight,buff,...)
    local target = buff.target;
    local values = decodeJsonStrToTabel(buff.buffBean.f_Value);
    local value = FighterAttributeManager.getFightAttr(target,EnumConst.FighterAttributeEnum.HP) * values[1]/EnumConst.TEN_THOUSANDTH;
    local result = FightResult.New();
    result.damage = value;
    FightDamageManager.realDamage(fight,buff.source,target,result,EnumConst.SkillDamageTypeEnum.HEAL);
    fightLog("[EFFECT]Fighter "..buff.target.fighterId.." Buff"..buff.modelId.." 触发每秒回复HP效果，增加HP："..value);
    return EnumConst.IBuffEffect.SUCCESS;
end
